package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 自定义排班规则次数
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-28
 */
@Data
@TableName("grade_custom_rule_count")
@ApiModel(value = "GradeCustomRuleCount对象", description = "自定义排班规则次数")
public class GradeCustomRuleCount implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("对应grade_custom_set表id")
    private Long gradeCustomSetId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("1按班型，2按周内或周末")
    private Integer type;

    @ApiModelProperty("按型型为班型id，周内为A类，周末为B类")
    private String typeValue;

    @ApiModelProperty("次数")
    private Integer count;

    private Long createdId;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

}
